package com.ms.p2p.provider.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.account.Withdraw;
import com.ms.p2p.provider.MemberWithDrawProvider;
import com.ms.p2p.service.impl.MemberWithDrawServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * 提现管理
 */
@Service
public class MemberWithDrawProviderImpl implements MemberWithDrawProvider {
	@Autowired
	MemberWithDrawServiceImpl memberWithDrawService;

	public void withDrawApply(Withdraw withdraw, String ip) {
		memberWithDrawService.withDrawApply(withdraw,ip);
	}

	public int insert(Withdraw withdraw) {
		return memberWithDrawService.insert(withdraw);
	}

	public List<Map<String, Object>> findPager(String status, String userId, String userName, String begin_date, String end_date, PageBean page) {
		return memberWithDrawService.findPager(status,userId,userName,begin_date,end_date,page);
	}

	public List<Map<String, Object>> findList(String status, String userId, String userName, String begin_date, String end_date) {
		return memberWithDrawService.findList(status,userId,userName,begin_date,end_date);
	}

	public Map<String, Object> getEmplyoee(int cashId) {
		return memberWithDrawService.getEmplyoee(cashId);
	}

	public Withdraw findByid(String cashId) {
		return memberWithDrawService.findByid(cashId);
	}

	public int update(Withdraw withdraw) {
		return memberWithDrawService.update(withdraw);
	}

	public String countCash(int user_id) {
		return memberWithDrawService.countCash(user_id);
	}

	public int findCount(String status, String userId, String userName, String begin_date, String end_date) {
		return memberWithDrawService.findCount(status,userId,userName,begin_date,end_date);
	}
}
